package com.yxzx.ebs.mapper;

import com.yxzx.ebs.entity.EbsCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxzx.ebs.entity.vo.CoursePublishVo;
import com.yxzx.ebs.entity.vo.EbsCourseWebVo;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author kongfuzi
 * @since 2020-07-30
 */
public interface EbsCourseMapper extends BaseMapper<EbsCourse> {

    /**
     * 根据课程ID查询课程详情
     * @param id
     * @return
     */
    CoursePublishVo selectCoursePublishVoById(String id);

    /**
     * 前台页面根据课程ID查询课程详情
     * @param courseId
     * @return
     */
    EbsCourseWebVo selectInfoWebById(String courseId);

}
